home *** CD-ROM | disk | FTP | other *** search
/ Varios Español / Varios Español.iso / PMAKER65 / archive.z / RUNDIREX.TXT < prev    next >
Text File  |  1996-07-01  |  2KB  |  56 lines

  1. %!
  2. % PostScript program for distilling and combining an entire folder or
  3. % directory of PostScript files.
  4. % When embedding font subsets, it is highly recommended you use this technique
  5. % to distill multiple PS files so only one font subset is used for each font.
  6.  
  7. /PathName (Macintosh HD:Test:*.ps) def      % Edit this to point to the folder
  8.                                           %   containing the PS files.
  9.  
  10. /RunDir {                       % Uses PathName variable on the operand stack
  11.     { /mysave save def          % Performs a save before running the PS file
  12.           dup = flush           % Shows name of PS file being run
  13.           RunFile               % Calls built in Distiller procedure
  14.           clear cleardictstack  % Cleans up after PS file
  15.           mysave restore        % Restores save level
  16.     }
  17.     255 string
  18.     filenameforall
  19. } def
  20.  
  21. PathName RunDir
  22.  
  23. % INSTRUCTIONS
  24. %
  25. % 1. Place all PostScript files to be distilled and concatenated in a single 
  26. %    directory.  For example, here are example names of PS files that might
  27. %    be used to distill a book:
  28. %
  29. %       ac001.ps    Cover
  30. %       bt001.ps    Table of Contents
  31. %       ch001.ps    Chapter 1
  32. %       ch002.ps    Chapter 2
  33. %       ch003.ps    Chapter 3
  34. %       in001.ps    Index
  35. %
  36. % 2. Make a copy of this file and give it the name you want to have as the prefix
  37. %    for the resulting file. For example, you could name this file MyBook.txt. 
  38. %
  39. % IMPORTANT:  Don't use the .ps suffix if this file is in the same folder as the 
  40. %   rest of your .ps files. The RunDir command will execute all files that end in 
  41. %  .ps and this file will be distilled twice!
  42. %
  43. % 3. Redefine the variable "PathName" above to point to the folder/directory which
  44. %    contains your PS files.
  45. %
  46. %       Macintosh pathname syntax:  /PathName (Macintosh HD:Folder:*.ps) def
  47. %       Windows pathname syntax:    /PathName (c:/mydir/*.ps) def
  48. %        UNIX pathname syntax:    /PathName (.\\/mydir\\/*.ps) def
  49. %
  50. %       Note: The syntax for Windows may look strange, but double escaping the
  51. %             backslash character is required when using filenameforall.
  52. %
  53. % 4. Distill the file on the machine running Acrobat Distiller.
  54.  
  55.  
  56.